﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.ComponentModel;

namespace FACUI.BasicClass
{
    public class ChaHou : Form
    {
        private Button button1;
        private CheckBox checkBox01;
        private CheckBox checkBox02;
        private CheckBox checkBox03;
        private CheckBox checkBox04;
        private CheckBox checkBox05;
        private IContainer components = null;
        public static Dictionary<int, bool> paramDict = new Dictionary<int, bool>();

        public ChaHou()
        {
            this.InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            paramDict = new Dictionary<int, bool>();
            paramDict.Add(1, this.checkBox01.Checked);
            paramDict.Add(2, this.checkBox02.Checked);
            paramDict.Add(3, this.checkBox03.Checked);
            paramDict.Add(4, this.checkBox04.Checked);
            paramDict.Add(5, this.checkBox05.Checked);
        }

        private void ChaHou_Load(object sender, EventArgs e)
        {
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.checkBox02 = new CheckBox();
            this.button1 = new Button();
            this.checkBox03 = new CheckBox();
            this.checkBox04 = new CheckBox();
            this.checkBox05 = new CheckBox();
            this.checkBox01 = new CheckBox();
            base.SuspendLayout();
            this.checkBox02.AutoSize = true;
            this.checkBox02.Checked = true;
            this.checkBox02.CheckState = CheckState.Checked;
            this.checkBox02.Enabled = false;
            this.checkBox02.Location = new Point(0x1f, 0x2c);
            this.checkBox02.Name = "checkBox02";
            this.checkBox02.Size = new Size(0x9c, 0x10);
            this.checkBox02.TabIndex = 0;
            this.checkBox02.Text = "岔后逻辑开关量自动生成";
            this.checkBox02.UseVisualStyleBackColor = true;
            this.button1.Location = new Point(0x135, 0x8e);
            this.button1.Name = "button1";
            this.button1.Size = new Size(0x4b, 0x1c);
            this.button1.TabIndex = 1;
            this.button1.Text = "开始执行";
            this.button1.UseVisualStyleBackColor = true;
            this.button1.Click += new EventHandler(this.button1_Click);
            this.checkBox03.AutoSize = true;
            this.checkBox03.Checked = true;
            this.checkBox03.CheckState = CheckState.Checked;
            this.checkBox03.Enabled = false;
            this.checkBox03.Location = new Point(0x1f, 0x43);
            this.checkBox03.Name = "checkBox03";
            this.checkBox03.Size = new Size(240, 0x10);
            this.checkBox03.TabIndex = 2;
            this.checkBox03.Text = "信号机接近、防护区段连接关系自动生成";
            this.checkBox03.UseVisualStyleBackColor = true;
            this.checkBox04.AutoSize = true;
            this.checkBox04.Checked = true;
            this.checkBox04.CheckState = CheckState.Checked;
            this.checkBox04.Location = new Point(0x1f, 90);
            this.checkBox04.Name = "checkBox04";
            this.checkBox04.Size = new Size(300, 0x10);
            this.checkBox04.TabIndex = 3;
            this.checkBox04.Text = "岔前区段逻辑开关量自动生成（取道岔前红、前白）";
            this.checkBox04.UseVisualStyleBackColor = true;
            this.checkBox05.AutoSize = true;
            this.checkBox05.Location = new Point(0x1f, 0x71);
            this.checkBox05.Name = "checkBox05";
            this.checkBox05.Size = new Size(0x11a, 0x10);
            this.checkBox05.TabIndex = 3;
            this.checkBox05.Text = "岔前区段名称（如7DG）自动生成并隐藏显示状态";
            this.checkBox05.UseVisualStyleBackColor = true;
            this.checkBox05.Visible = false;
            this.checkBox01.AutoSize = true;
            this.checkBox01.Location = new Point(0x1f, 0x15);
            this.checkBox01.Name = "checkBox01";
            this.checkBox01.Size = new Size(180, 0x10);
            this.checkBox01.TabIndex = 4;
            this.checkBox01.Text = "操作之前清除全部逻辑开关量";
            this.checkBox01.UseVisualStyleBackColor = true;
            base.AcceptButton = this.button1;
            base.AutoScaleDimensions = new SizeF(6f, 12f);
            base.AutoScaleMode = AutoScaleMode.Font;
            base.ClientSize = new Size(0x18c, 0xb3);
            base.Controls.Add(this.checkBox01);
            base.Controls.Add(this.checkBox05);
            base.Controls.Add(this.checkBox04);
            base.Controls.Add(this.checkBox03);
            base.Controls.Add(this.button1);
            base.Controls.Add(this.checkBox02);
            base.FormBorderStyle = FormBorderStyle.FixedToolWindow;
            base.Name = "ChaHou";
            base.StartPosition = FormStartPosition.CenterScreen;
            this.Text = "岔后生成";
            base.Load += new EventHandler(this.ChaHou_Load);
            base.ResumeLayout(false);
            base.PerformLayout();
        }
    }
}

